package com.zhang.service;

import com.zhang.mapper.DepartmentMapper;
import com.zhang.pojo.Department;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ZhangJunqi
 * @Date 2022/3/2 -21:40
 */
@Service
public class DepartmentService {
    @Resource
    private DepartmentMapper departmentMapper;
    public List<Department> getAllDepartment() {
        return departmentMapper.getAllDepartment();
    }
}
